home *** CD-ROM | disk | FTP | other *** search
/ kermit.columbia.edu / kermit.columbia.edu.tar / kermit.columbia.edu / newsgroups / misc.19961006-19970104 / 000198_news@columbia.edu _Mon Nov 18 15:00:14 1996.msg < prev    next >
Internet Message Format  |  1996-12-31  |  6KB

  1. Return-Path: news@columbia.edu
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30]) by watsun.cc.columbia.edu (8.7.5/8.7.3) with ESMTP id PAA06665 for <kermit.misc@watsun.cc.columbia.edu>; Mon, 18 Nov 1996 15:00:13 -0500 (EST)
  3. Received: (from news@localhost) by newsmaster.cc.columbia.edu (8.7.5/8.7.3) id PAA28576 for kermit.misc@watsun; Mon, 18 Nov 1996 15:00:12 -0500 (EST)
  4. Path: news.columbia.edu!panix!feed1.news.erols.com!howland.erols.net!newsfeed.internetmci.com!newshub.csu.net!usenet
  5. From: "Joe Emenaker" <jemenake@oboe.aix.calpoly.edu>
  6. Newsgroups: comp.protocols.kermit.misc
  7. Subject: Kermit 5A (190) says it can't initialize the modem
  8. Date: 18 Nov 1996 19:56:17 GMT
  9. Organization: College of Business
  10. Lines: 183
  11. Message-ID: <01bbd58a$971a31a0$805b4181@DAMIEN.BUSFAC.CALPOLY.EDU>
  12. NNTP-Posting-Host: damien.busfac.calpoly.edu
  13. Mime-Version: 1.0
  14. Content-Type: text/plain; charset=ISO-8859-1
  15. Content-Transfer-Encoding: 7bit
  16. Keywords: initialize modem
  17. X-Newsreader: Microsoft Internet News 4.70.1155
  18.  
  19.  
  20. I'm trying to use a package that let's me send messages to an
  21. alpha-pager. It uses kermit and I am having nothing but headaches with
  22. it.
  23.  
  24. I'm using it on a Linux machine with kernel 2.0.6.
  25.  
  26. The problem goes something like this:
  27. First, when the script tells kermit to dial, the *first* thing it does is
  28. go off hook and then issue a carrier (as if I had just send an "ATA" to
  29. the modem). It then goes back on-hook a second or two later. Then, after
  30. about 10 seconds, I get "DIAL Failure: Error initializing modem". This is
  31. what happens with the script as I've currently got it. In the past, it's
  32. done things like connect to the remote host but the data gets all
  33. garbled.
  34.  
  35. I've tried this with a cheap-o hayes-compatible 14.4, a Gateway Telepath
  36. 33k, and am currently trying it with a Zoom 33k.
  37.  
  38. So, is it me or is kermit like the flakiest program on the planet?
  39.  
  40. Oh, by the way, here's the script I'm using. It's from SysAdmin
  41. magazine... about a year back...
  42.  
  43. --------------- Included text ---------------
  44. ;Usage asap.scr <messagefile> <phonenumber>
  45. set line /dev/ttyS1     ; Set for second serial port on a SPARCstation
  46. die
  47. set modem hayes         ; Set for Hayes modem
  48. #set modem sportster            ; Set for Hayes modem
  49. set local-echo on       ; Echo local (doesn't seem to work)
  50. set duplex full         ; Echo local (doesn't seem to work)
  51. set parity even         ; Should set us to 7e1
  52. set speed 19200         ; 1200 is max speed AirTouch seems to accept
  53. #set speed 1200         ; 1200 is max speed AirTouch seems to accept
  54. #set output pacing 1    ; Seems needed to work with AirTouch
  55.  
  56. set input echo on       ; Need to watch.
  57. set debug session
  58.  
  59. set take error off      ; To handle EOF on READ (doesn't seem to do
  60. anything)
  61.  
  62. ;output at s11=25       ; Set speed dialing to 25ms bursts
  63. echo "s11=50"
  64. output at s11=50        ; Set speed dialing on to 50ms bursts
  65. echo "S13=50"
  66. output at s13=50        ; Set speed dialing off to 50ms bursts
  67. echo "l2"
  68. output at l2
  69. #echo "&c1&d2"
  70. #output at &c1&d2
  71. # out atm0
  72.  
  73. open read \&@[2]        ; Open the file message.txt read-only
  74. if fail goto noinput
  75. read \%p                ; Read a line (presumably containing a pin)
  76. if fail goto nofirst
  77. echo PIN is \%p
  78. read \%m                ; Read a line (presumably containing a message)
  79. if fail goto nofirst
  80. echo Message is \%m
  81.  
  82. read \%c                ; Read a line (presumably containing a checksum)
  83. if fail goto nofirst
  84. echo Checksum = \%c
  85.  
  86. read \%d                ; Read a line (presumably containing a cr
  87. delimeter)
  88. if fail goto nofirst
  89. echo Delimiter = "\%d"
  90.  
  91. :makecall
  92. #hangup
  93. echo Dialing \&@[3]
  94. dial \&@[3]             ; Dial second parameter
  95.  
  96. ;define echo echo Error: \%1, end       ; Error-handling macro.
  97. ;set input timeout proceed              ; Don't quit if INPUT fails.
  98. ;set input case ignore                  ; Alphabetic case doesn't matter.
  99.  
  100. output \13                              ; Send carriage return (ASCII
  101. 13).
  102. output \13                              ; Send carriage return (ASCII
  103. 13).
  104.  
  105. input 10 ID=                            ; Wait for ID request
  106. if fail goto noid
  107.  
  108. output {\27PG1\13}                      ; Send <ESC>PG1<CR> to go into
  109. automatic mode
  110. if fail echo \7I can't send the pg1!, what the hell is going on here?!
  111.  
  112. input 5 \006    ; Wait for <CR><ACK><CR>
  113. if fail goto nofirsthand
  114.  
  115. def \%i 0               ; Initialize the block counter to zero
  116.  
  117. :beginwhile
  118.  
  119.  
  120.         output \2\%p\13\%m\13\3\%c\13   ; Send the block (ugly huh?)
  121.         if fail echo \7I can't send the block!, what the hell is going on
  122. here?!
  123.  
  124.         input 35 \006   ; Wait for <CR><ACK><CR>
  125.         if success goto contwhile
  126.  
  127.                 reinput 0 \21
  128.                 if success GOTO gotnak
  129.  
  130.                 reinput 0 \27
  131.                 if success GOTO goteot
  132.  
  133.                 echo \7I didn't get anything I know about when I was
  134. hoping for an <ACK>, I'll try the call again!
  135.                 goto makecall
  136.  
  137. :contwhile
  138.         read \%p                ; Read a line (presumably containing a
  139. pin), bug out of while if I can't read one
  140.         if fail goto endwhile
  141.  
  142.         read \%m                ; Read a line (presumably containing a
  143. message)
  144.         if fail goto trunc
  145.  
  146.         read \%c                ; Read a line (presumably containing a
  147. checksum)
  148.         if fail goto trunc
  149.  
  150.         read \%d                ; Read a line (presumably containing a cr
  151. delimeter)
  152.         if fail goto trunc
  153.  
  154. goto beginwhile
  155. :endwhile
  156.  
  157. close read      ; Close the message file
  158.  
  159. output \13      ; Get outta here!
  160. hangup
  161. quit
  162.  
  163. :noinput
  164. echo \7 I couldn't open the input file, help!
  165. goto die
  166.  
  167. :nofirst
  168. ECHO \7 I couldn't get the first record of the file, help!
  169. ECHO Here is what I got
  170. echo \v(input)
  171. goto die
  172.  
  173. :noid
  174. ECHO \7 I didn't even get the ID prompt, I'll try the call again
  175. GOTO makecall
  176.  
  177. :nofirsthand
  178. ECHO  \7I didn't even get the initial <CR><ACK><CR>, I'll try the call
  179. again!
  180. GOTO makecall
  181.  
  182. :gotnak
  183. echo OK I got a <NAK> I'll just resend the packet
  184. goto beginwhile
  185.  
  186. :goteot
  187. echo \7I got an <EOT> I'll try the call again
  188. ;goto makecall
  189. goto contwhile
  190.  
  191. :trunc
  192. echo \7It looks like the message input file is truncated, help!
  193. goto die
  194.  
  195. :die
  196. echo \7\7\7 I am dying!!!
  197. close read      ; Close the message file
  198. output \13      ; Get outta here!
  199. hangup          ;
  200. quit    1
  201.